﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using QunProject.Common;

namespace QunProject.Server.Controllers
{
    public class BaseController : Controller
    {
        /// <summary>
        /// 返回数据对象
        /// </summary>
        public Common.Result Result = new Common.Result();
        /// <summary>
        /// 使用对象创建一个内容结果对象
        /// </summary>
        /// <param name="obj">要写入到响应的对象</param>
        /// <returns></returns>
        public ActionResult Content(object obj)
        {
            return Content(obj.ToString());
        }

    }
}